<div class="modal-header">
    <h4 class="modal-title">销售订货单出库信息明细</h4>
</div>

<div class="col" style="width:100%">
    <div class="wrapper-md">
        <table class="table m-b-none">
            <thead>
            <tr>
                <th>创建时间</th>
                <th>单据类型</th>
                <th>单据编号</th>
                <th ng-repeat="tb in data.order.details">{{tb.salesOrderDetailsHpmc}}（{{tb.salesOrderDetailsHpdw}}）</th>
            </tr>
            <tr>
                <th>{{data.order.createTime}}</th>
                <th>订货单</th>
                <th><a ng-click="jump(data.order.salesOrderId,'app.saleOrder')">{{data.order.salesOrderXsdh}}<a/></th>
                <th ng-repeat="tb in data.order.details">{{tb.salesOrderDetailsHpsl}}</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="tb in data.info">
                <td>{{tb.createTime}}</td>
                <td>出库单</td>
                <td><a ng-click="jump(tb.salesOutId,'app.saleWarehousing')">{{tb.salesOutCkdh}}</a></td>
                <td ng-repeat="tbd in tb.details">{{tbd.salesOrderDetailsHpsl}}</td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: right">出库单出库货物总数：</td>
                <td ng-repeat="d in doneAll">{{d.sl}}</td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: right">达成订单数量还差货物总数：</td>
                <td ng-repeat="nd in nDoneAll">{{nd.sl}}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<div class="modal-footer">
    <button class="btn btn-default" ng-click="cancel()">取消</button>
    <button class="btn btn-primary" ng-click="ok()">确定</button>
</div>